package com.mon4cc.simulation;

import com.mon4cc.simulation.utils.BpmnUtils;
import lombok.extern.slf4j.Slf4j;
import org.jbpt.pm.FlowNode;
import org.jbpt.pm.bpmn.Bpmn;
import org.jbpt.pm.bpmn.BpmnControlFlow;
import org.jbpt.pm.bpmn.StartEvent;

import java.util.Set;

/**
 * @author Ping
 * @date 2022/12/19 11:35
 **/
public class StartEventSimulatedInstance extends FlowNodeSimulatedInstance {
    public StartEventSimulatedInstance(TokenBasedBPMNSimulation bpmnSimulation) {
        super(bpmnSimulation, bpmnSimulation.getStartEvent()) ;
    }

    @Override
    public void doExecute(ExecuteContext context) {

        writer.write(this,context);
        // execute next
        this.nextInstance(context).doExecute(context);
    }

}
